home *** CD-ROM | disk | FTP | other *** search
/ PC Elektro 3 / PC-Elektro-3-cd1.bin / KBan 2.0 / KBANSRC.LZH / SRC / PROG / NETLIST / HESSE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-23  |  595 b   |  27 lines

  1. // the declaration of class HESSE
  2. // Copyright (C) 1997 Kazutaka Hirata <khirata@jove.acs.unt.edu>
  3.  
  4. #ifndef _HESSE_H_
  5. #define _HESSE_H_
  6.  
  7. #include "seg.h"
  8.  
  9. class HESSE {
  10.   double m_a;
  11.   double m_b;
  12.   double m_c;
  13.   double m_angle;
  14.   XY_DBL m_h;
  15.   bool m_on_segment;
  16. public:
  17.   HESSE(const SEGMENT& seg);
  18.   double a() const { return m_a; }
  19.   double b() const { return m_b; }
  20.   double c() const { return m_c; }
  21.   double angle() const { return m_angle; }
  22.   const XY_DBL& h() const { return m_h; }
  23.   bool on_segment() const { return m_on_segment; }
  24. };
  25.  
  26. #endif /* _HESSE_H_ */
  27.